﻿using System;
using wordroid.Resources;

namespace wordroid.utils
{
    public abstract class BaseException : Exception {
        protected BaseException(string message) : base(message) {
        }
    }

    public class WordExistsException : BaseException {
        public WordExistsException() : base(AppResources.ExceptionWordExists) {
        }
    }

    public class WordIsEmptyException : BaseException {
        public WordIsEmptyException() : base(AppResources.ExceptionWordIsEmpty) {
        }
    }

    public class TranslationsIsEmptyException : BaseException {
        public TranslationsIsEmptyException() : base(AppResources.ExceptionTranslationsIsEmpty) {
        }
    }

    public class NetworkException : BaseException {
        public NetworkException() : base(AppResources.ErrorConnectionError) {
        }
    }
}
